From 914053a2a3d21b87c81527ed25fc36776d976488 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 21 Feb 2012 01:04:53 +0100 Subject: [PATCH] gtk_window_set_attached_to: ref(), not ref_sink() the attach_widget The attached popup doesn't take ownership of its "parent" widget, so ref_sink() was wrong, and caused widgets to be leaked. --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 32e736f3cd..c73c0e3d5b 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -2662,7 +2662,7 @@ gtk_window_set_attached_to (GtkWindow *window, { _gtk_widget_add_attached_window (priv->attach_widget, window); - g_object_ref_sink (priv->attach_widget); + g_object_ref (priv->attach_widget); } /* Update the style, as the widget path might change. */ -- 2.30.2